Skip to content

Conversation

prestonvasquez
Copy link
Member

GODRIVER-1412

Summary

Add options.DriverInfo to allow libraries wrapping the Go Driver to append the client metadata generated by the driver when handshaking the server.

Background & Motivation

From DRIVERS-767:

The data warehouse team is tracking driver usage in Atlas and working on a set of charts for that data. As part of that project we would like to begin tracking projects built at MongoDB or maintained by MongoDB employees that wrap drivers. For example, Mongoid, PyMODM, Doctrine, Mongoose, etc. Note that these are wrapping libraries, not applications, so using the appname field is not appropriate

@prestonvasquez prestonvasquez marked this pull request as draft November 14, 2024 21:07
@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the review-priority-low Low Priority PR for Review: within 3 business days label Nov 14, 2024
@mongodb-drivers-pr-bot
Copy link
Contributor

API Change Report

./v2/mongo/options

compatible changes

(*ClientOptionsBuilder).SetDriverInfo: added
ClientOptions.DriverInfo: added
DriverInfo: added

./v2/x/mongo/driver/auth

compatible changes

HandshakeOptions.OuterLibraryName: added
HandshakeOptions.OuterLibraryPlatform: added
HandshakeOptions.OuterLibraryVersion: added

./v2/x/mongo/driver/operation

compatible changes

(*Hello).OuterLibraryName: added
(*Hello).OuterLibraryPlatform: added
(*Hello).OuterLibraryVersion: added

./v2/x/mongo/driver/topology

compatible changes

WithOuterLibraryName: added
WithOuterLibraryPlatform: added
WithOuterLibraryVersion: added

@prestonvasquez prestonvasquez marked this pull request as ready for review November 15, 2024 20:12
@prestonvasquez prestonvasquez merged commit 09e46d2 into mongodb:master Nov 18, 2024
28 of 34 checks passed
@prestonvasquez prestonvasquez deleted the GODRIVER-1412 branch November 18, 2024 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-priority-low Low Priority PR for Review: within 3 business days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants